package com.bookcloud.java21.chapter4.继承使用final关键字412;

public class Animal {
  final String name = "动物";

  public static void main(String[] args) {
    Animal animal = new Animal();
    System.out.println(animal.name);
    // final关键词修饰，不能修改
    // animal.name = "动物2";
  }
}
